package com.itheima.demo.listener;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class KafkaSpringDemoListener {

    @KafkaListener(topics = {"itheima-topic-kafka-spring-demo", "itheima-aaa"})
    public void message(String msg){
        System.out.println(msg);
    }

}
